package com.student.jps.service;

import com.student.jps.entity.Student;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Optional;

public interface StudentService {

    Page<Student> getList(Pageable pageable);

    Student insert(Student student);

    Student update(Student student);

    List<Student> findByNameLike(String name);

    Optional<Student> getById(Integer id);

    Page<Student> findBySexLike(String sex,Pageable pageable);

    void delete(Student student);


}
